package com.fengdi.everyday.easy;

public class FinalValueAfterOperations {
    public int finalValueAfterOperations(String[] operations) {
        int res = 0;

        for(String s : operations) {
            if(s.contains("++")) {
                res++;
            }else {
                res--;
            }
        }

        return res;
    }
}
